#include "mainwindow.h"

#include <QApplication>
#include "pubdef.h"

QSettings *_settings;
int main(int argc, char *argv[])
{

    setbuf(stdout, NULL);
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif

#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
    QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#endif
    QApplication a(argc, argv);

    a.setApplicationName(QApplication::tr("Kylin Live Text"));
    a.setApplicationVersion("1.0.0-ok1");

    MainWindow w;
    w.show();
    return a.exec();
}
